const base_url = "http://127.0.0.1:5000"
let http = async function(obj) {
	obj.url = base_url + obj.url
	var res = await uni.request(obj)
	if (res.length === 1)
		res = [null, res[0]]
	return res
}

export default http;
